package cn.com.clearcloud.store.impl;

import cn.com.clearcloud.store.mapper.StoreMapper;
import cn.com.clearcloud.store.service.StoreService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@AllArgsConstructor
public class StoreServiceImpl implements StoreService {


    private final StoreMapper storeMapper;

    @Override
    public int deduct(String commodityCode, int count) {
        return storeMapper.deduct(commodityCode, count);
    }
}
